public class Test {
    public static void main(String[] args) {
        MyList myList = new MyList();
        myList.creatList();
        myList.display();
        System.out.println();
        myList.addFirst(30);
        System.out.println();
        myList.display();
        System.out.println();
        myList.addLast(30);
        myList.display();
        System.out.println();
        myList.delete(30);
        System.out.println();
        myList.display();
        System.out.println();
        myList.middleNode();
    }
}
